package com.cowealth.platform.common.base.vo.result;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serializable;
import java.util.List;

/**
 * 通用下拉框返回对象，支持树结构
 *
 * @author : skycdm
 * @version : 1.0.0
 * @date : 2021/4/9 10:55
 */
public class SelectTree implements Serializable {

    /**
     * 节点key值
     */
    private String key;

    /**
     * 节点显示文本
     */
    private String label;

    /** 子节点 */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<SelectTree> children;


    public String getKey() {
        return key;
    }

    public SelectTree setKey(String key) {
        this.key = key;
        return this;
    }

    public String getLabel() {
        return label;
    }

    public SelectTree setLabel(String label) {
        this.label = label;
        return this;
    }

    public List<SelectTree> getChildren() {
        return children;
    }

    public SelectTree setChildren(List<SelectTree> children) {
        this.children = children;
        return this;
    }
}
